﻿cmake_minimum_required(VERSION 3.10)
project(ObjectRecognitionProject)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

# 设置 OpenCV 路径
set(OpenCV_DIR "D:\anaconda\envs\pytorch\Lib\site-packages\opencv_python-4.10.0.84.dist-info")  
find_package(OpenCV REQUIRED)

# 包含目录
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${CMAKE_SOURCE_DIR}/include)

# 添加可执行文件
add_executable(ObjectRecognitionProject main.cpp 
                              src/ObjectRecognition.cpp 
                              src/CameraCalibration.cpp)

# 链接 OpenCV 库
target_link_libraries(ObjectRecognitionProject ${OpenCV_LIBS})